<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">


<ui:composition template="/template.xhtml">
	<ui:define name="tituloPagina">
		<p:outputLabel value="#{msgs['paginas.cadastro.titulo.compromissos']}"/>
		
	</ui:define>
	<ui:define name="principal">
		<div class="formulario">
			
			<p:message for="reuniao"/>
			
			<p:selectOneMenu value="#{compromissoBean.idReuniaoSelecionada}"
				style="width: 350px;" id="reuniao" required="true" 
				requiredMessage="#{msgs['mensagens.campo.obrigatorio']}" >	
				<f:selectItem itemLabel="Selecione uma Reunião" itemValue=""></f:selectItem>
				<f:selectItems value="#{compromissoBean.listaReunioes}">
				</f:selectItems>
								
			</p:selectOneMenu>

		</div>
	</ui:define>
	<ui:define name="botoes">
		<p:commandButton
			value="#{msgs['botoes.cadastrar.compromissos.reuniao']}"
			action="#{compromissoBean.novo}" ajax="false"/>

		<p:commandButton 
			value="Cancelar" action="#{compromissoBean.cancelar}" ajax="false" immediate="true"/>
			
	</ui:define>
</ui:composition>
</html>